#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
//#include <strsafe.h>

#include <mTestUnit.h>

mTest_strcmp( void * ptr )
{
	mTestCase * tc = (mTestCase *) ptr;

	mAssertStrEquals( tc, "aaa", "bbb", "erreur....." );
}

mTest_strcmp2( void * ptr )
{
	mTestCase * tc = (mTestCase *) ptr;

	mAssertStrEquals( tc, "aaa", "aaa", "erreur....." );
}


toto( void * ptr )
{
	mTestCase * tc = (mTestCase *) ptr;

	mAssertTrue( tc, 1, "et merde !!!!" );
}

titi( void * ptr )
{
	mTestCase * tc = (mTestCase *) ptr;

	mAssertTrue( tc, 0, "et merde !!!!" );
}

tutu( void * ptr )
{
	mTestCase * tc = (mTestCase *) ptr;

	mTestSuitePrintErrorMessage( tc, TEXT("coucou") );
}

int main( int argc, TCHAR ** argv )
{
	mTest suite;

	mTestSuiteInit( &suite, printf );
	mTestSuiteAddTest( &suite, mTest_strcmp );
	mTestSuiteAddTest( &suite, mTest_strcmp2 );
	mTestSuiteAddTest( &suite, toto );
	mTestSuiteAddTest( &suite, titi );
	mTestSuiteAddTest( &suite, tutu );

	mTestSuiteRun( &suite );

	mTestSuiteDestroy( &suite );
}